.header {
    background: linear-gradient(90deg, #667eea, #764ba2);
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-info a {
    color: white;
    text-decoration: none;
    margin-left: 10px;
    font-size: 14px;
}

.main-content {
    max-width: 1200px;
    margin: 80px auto 30px;
    padding: 0 20px;
}

.news-list {
    display: grid;
    gap: 25px;
    padding: 10px;
}

.news-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.news-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.2);
}

.news-card h2 {
    margin: 0 0 12px;
    color: #2d3748;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.4;
}

.news-meta {
    color: #718096;
    font-size: 14px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.date-container {
    display: flex;
    align-items: center;
    gap: 6px;
}

.date-container i {
    color: #718096;
}

.news-preview {
    color: #4a5568;
    line-height: 1.7;
    font-size: 15px;
}

.loading {
    text-align: center;
    padding: 30px;
    color: #4a5568;
    font-weight: 500;
}

.loading-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.loading-text::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #e2e8f0;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 导航栏样式 */
.navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 60px;
}

.navbar-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.navbar-title {
    font-size: 20px;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
}

/* 用户信息区域样式 */
.user-info {
    width: 120px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.user-info a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

/* 用户头像容器样式 */
.user-avatar-container {
    height: 40px;
    display: flex;
    align-items: center;
    position: relative;
}

/* 用户头像样式 */
.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s;
    background: #f0f0f0;
}

.user-avatar:hover {
    transform: scale(1.05);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 登录/注册链接样式 */
.user-info > a {
    margin: 0 5px;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.user-info > span {
    color: #999;
}

/* 主内容区域样式 */
.main-content {
    margin-top: 80px;
    padding: 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* 页面标题样式 */
.page-title {
    text-align: center;
    margin-bottom: 50px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-title h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #2d3748;
}

.page-title p {
    color: #4a5568;
    font-size: 16px;
    font-weight: 500;
}

/* 新闻列表样式 */
.news-list {
    display: grid;
    gap: 25px;
    padding: 10px;
}

.news-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.news-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.98);
}

.news-card h2 {
    margin: 0 0 12px;
    color: #2d3748;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.4;
}

.news-meta {
    color: #4a5568;
    font-size: 14px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.news-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-meta span::before {
    content: '📅';
}

.news-preview {
    color: #4a5568;
    line-height: 1.7;
    font-size: 15px;
}

/* 加载状态样式 */
.loading {
    text-align: center;
    padding: 30px;
    color: white;
    font-weight: 500;
}

.loading-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.loading-text::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 下拉菜单样式 */
.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 8px 0;
    min-width: 120px;
    display: none;
    margin-top: 5px;
    z-index: 1000;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 8px 16px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s;
}

.dropdown-menu a:hover {
    background-color: #f5f5f5;
}

.dropdown-menu .divider {
    height: 1px;
    background-color: #eee;
    margin: 4px 0;
}

.like-container {
    display: flex;
    align-items: center;
}

.like-btn {
    background: none;
    border: 1px solid #e2e8f0;
    padding: 6px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #718096;
    transition: all 0.3s ease;
    border-radius: 20px;
    background-color: white;
    font-size: 14px;
}

.like-btn:hover {
    background-color: #f7fafc;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.like-btn.liked {
    color: #e53e3e;
    border-color: #fed7d7;
    background-color: #fff5f5;
}

.like-btn.liked .like-icon {
    color: #e53e3e;
}

.like-icon {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.like-btn:hover .like-icon {
    transform: scale(1.1);
}

.like-count {
    font-size: 14px;
    font-weight: 500;
    min-width: 20px;
    text-align: center;
} 